<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a="http://richfaces.org/a4j">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
   <body>	                            
        <h1>订单管理</h1>           
        <f:subview id="no_shipping" rendered="#{isEmpty}">
            <p>没有订单</p>
        </f:subview>
        <h:dataTable rendered="#{!isEmpty}"
                     value="#{orders1}"
                     var="order" 
                     border = "1"
                     width = "70%">                   
            <h:column>
                <f:facet name="header">订单号</f:facet>
                <h:outputText value="#{order.orderId}" />
            </h:column>
		
			<h:column>
                <f:facet name="header">顾客姓名</f:facet>
                <h:outputText value="#{order.user.userName}" />
            </h:column>
	
            <h:column>
            	 <f:facet name="header">处理</f:facet>
                <s:button action="#{ship.select}"  value="查看"/>                             
            </h:column>               
        </h:dataTable>
   </body>
</html>